package com.ruoxi.blog.test;

import java.util.ArrayList;
import java.util.List;

/**
	* @author YaoXian
	* @title: FourNumsAdd
	* @projectName ruoxi-blog
	* @description: 若兮微服务 -
	* @date 2021-03-18 20:25
	*/
public class FourNumsAdd {
		public static void main(String[] args) {
				int[] nums = {1,0,-1,0,-2,2};
				add(nums,0,0);
		}
		
		public static void add(int[] nums, int target,int i){
				if (nums.length<4){
						System.out.println("数组长度不足");
						return;
				}
				ArrayList<List<Integer>> arr = new ArrayList<List<Integer>>();
				for ( i = 0; i < nums.length; i++) {
						if (target == 0){
								return;
						}else {
								add(nums,target,i++);
						}
				}
				System.out.println(arr);
		}
}
